package framework.http;

import framework.http.bean.HttpTask;
import framework.http.callback.HttpCallBack;
import framework.http.net.AsyncHttp;

public class Http {
	public static final int GET = 0;
	public static final int POST = 1;

	public static void doTask(HttpTask task, HttpCallBack callBack) {
		AsyncHttp.getInstance().doTask(task, callBack);
	}

	public static void doTask(HttpTask task, HttpCallBack callBack, String charset) {
		AsyncHttp.getInstance().doTask(task, callBack, charset);
	}
}
